package com.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * Created by Administrator on 2017/8/24.
 */
public class PropertieUtil {

    public static Properties getPro(String proFileName){
        Properties pro = null;
            try {
            pro = new Properties();
            InputStream in = Object.class.getResourceAsStream(proFileName);
            pro.load(in);
            in.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
            return  pro;
    }

}
